/* Sample.c by RaX| <raxxx.f@gmail.com> */

#include <stdlib.h>

#include <gtk/gtk.h>

#define _(String) String // use the gettext syntax for localizable strings.

void destroy_window_cb (GtkObject *object, gpointer user_data);

int
main (int argc, char* argv[])
{

  GtkWidget *window;

  gtk_set_locale ();
  gtk_init (&argc, &argv);

  window = gtk_window_new (GTK_WINDOW_TOPLEVEL);
  gtk_window_set_title (GTK_WINDOW (window), _("Title"));  

  g_signal_connect (G_OBJECT (window), "destroy", G_CALLBACK (destroy_window_cb), NULL);

  gtk_widget_show_all (window);
  gtk_main ();

  return EXIT_SUCCESS;

}

void
destroy_window_cb (GtkObject *object, gpointer user_data)
{

  gtk_main_quit ();

}

